package lab.anoper.fsm.fsm;

import org.squirrelframework.foundation.fsm.StateMachineConfiguration;
import org.squirrelframework.foundation.fsm.UntypedStateMachine;

/**
 * @author Yan Jiahong
 * Created at 2020/9/30
 */
public class Test {
    public static void main(String[] args) {

        StateMachineConfiguration cfg = StateMachineConfiguration.create();

        WxpayOrder wxpayOrder = new WxpayOrder();
        wxpayOrder.setStatus(PayOrderState.PAY_FAIL);
        UntypedStateMachine fsm = PayOrderStateMachine.getStartedInstance(wxpayOrder);
        System.out.println(fsm.getCurrentRawState());
        System.out.println(fsm.getStatus());
    }
}
